#include <iostream>
#include <cmath>
using namespace std;

int main(void)
{
    double a,b,c,AC,BC,sum;
    char key;

 cout<<"a=";
 cin>>a;
 cout<<"b=";
 cin>>b;
 cout<<"c=";
 cin>>c;
 AC=fabs(a-c);
 BC=fabs(b-c);
 sum=AC+BC;
 cout<<"Otvet"<<endl;
 cout<<"AC="<<AC<<endl;
 cout<<"BC="<<BC<<endl;
 cout<<"sum="<<sum<<endl;
 cout<<"press key";
 return 0;
}

